package com.hdax.dm;

import com.hdax.dm.feign.configuration.FeignWithTokenConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(scanBasePackages = "com.hdax.dm")
@EnableDiscoveryClient
@EnableFeignClients(defaultConfiguration = FeignWithTokenConfiguration.class)
@MapperScan(basePackages = "com.hdax.dm.mappers")
public class MainApplication {
  public static void main(String[] args){
    SpringApplication.run(MainApplication.class,args);
  }
}